﻿@using KMF.Common;
@using KMF.WebUI.CustomHelpers
@model List<ProductChildCateDto>
@{
    var listCategory = (List<ProductCategoryMenuLeftDto>)ViewBag.LeftCate;
    var cate = ViewBag.CateId;
}
<div class="slider">
    @Html.Action("BannerSlideOnHome", "Banner")
</div>
<div class="product_list">
    <div class="breadcrum">
        <a href="index.html">Trang chủ </a>> <a href="#">Sản phẩm</a>
    </div>
    <div class="menu_left">
        @Html.Action("MenuLeft", "CategoryL1", new {cateId = cate})
    </div>
    <div class="product_cate">
        <ul>
          
            @if (Model.Any())
            {
                foreach (var item in Model)
                {
                    
                <li>
                    <a href="@Url.Action("ProductByCateL2", "CategoryL1", new { cateId = item.Id, catefil = "OEJHY",cateName = item.Name})" title="@item.Name">
                        <img src="upload/categoryproduct/@item.ImagePath.ImagePathThumb(335,335)" width="335" height="335" />
                    <span>@item.Name</span>
                    </a>
                </li>
                }
            }
        </ul>
    </div>
</div>
@section scripts{
    @Scripts.Render("~/bundles/bxSlide")
    @Styles.Render("~/Content/bxSlide")
    <script type="text/javascript">
        var currentPage = "product";
    </script>
}